#include <iostream>
#include "Complex.hpp"
using namespace std;


int main(int argc, char const *argv[]){
        //需要把模板类 进行具体化以后 才能定义对象 c++编译器要分配内存
        Complex<int>    c1(1,2);
        cout<<c1<<endl;
        cout<<"static m_c = "<<Complex<int>::m_c<<endl;

        Complex<int> c2(3,4);
        cout<<c2<<endl;
        cout<<"static m_c = "<<Complex<int>::m_c<<endl;

        Complex<int> c3 = c1 + c2;
        cout<<c3<<endl;
        cout<<"static m_c = "<<Complex<int>::m_c<<endl;

        Complex<double> c4(3.14, 3.);
        cout<<c4<<endl;
        cout<<"static m_c = "<<Complex<double>::m_c<<endl;
        
        return 0;
}
